//
//  NRWCarTemplateShareCell.m
//  New_Runway
//
//  Created by 邢毅 on 2018/5/30.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "NRWCarTemplateShareCell.h"

@implementation NRWCarTemplateShareCell
{
    UIImageView *_imageView;
    UIImageView *_tagImageView;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _imageView = [[UIImageView alloc] init];
        _imageView.backgroundColor = [UIColor whiteColor];
        _imageView.frame = self.bounds;
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
        _imageView.layer.masksToBounds = YES;
        self.contentView.addSubview(_imageView);
        
        _tagImageView = [[UIImageView alloc] init];
        _tagImageView.frame = CGRectMake(self.viewWidth - 2 - 40, self.viewHeight - 6 - 36, 40, 36);
        self.contentView.addSubview(_tagImageView);
    }
    return self;
}

- (void)setImage:(UIImage *)image {
    
    _image = image;
    
    _imageView.image = image;
}

- (void)setTagImage:(UIImage *)tagImage {
    
    _tagImage = tagImage;
    
    _tagImageView.image = tagImage;
}

@end
